<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="js/wangEditor.min.js"></script>
</head>
<body>
	<h1>Ajax文件上传---三方组件</h1>
	<div id="editor">
		<p>欢迎使用<b>wangEditor</b>富文本编辑器</p>
	</div>
	<script type="text/javascript">
		var E=window.wangEditor;
		var editor=new E('#editor');
		// 服务器上传处理controller  
		editor.customConfig.uploadFileName = 'imgFiles';
    	editor.customConfig.uploadImgServer = 'ajaxUpload';
		editor.create();
	</script>

	<h1>传统上传文件</h1>
	<form action="fileupload1" method="post" enctype="multipart/form-data">
		选文件：<input type="file" name="upload" />
		<input type="submit" value="上传" />
	</form>
	
	<h1>SpringMVC上传文件</h1>
	<form action="fileupload2" method="post" enctype="multipart/form-data">
		选文件1：<input type="file" name="upload" /><br>
		选文件2：<input type="file" name="upload" /><br>
		<input type="submit" value="上传" />
	</form>
	
	
</body>
</html>